<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>::Login::</title>
</head>

<script language="javascript">

	function validarForm(){
	
          d = document.login;
		  
           if (d.login.value == ""){
                     alert("O campo " + d.login.name + " deve ser preenchido!");
                     d.login.focus();
                     return false;
           }else  
           if (d.senha.value == ""){
                   alert("O campo " + d.senha.name + " deve ser preenchido!");
                   d.senha.focus();
                   return false;
         }
	}//validarForm();


</script>

<body>
<p>&nbsp;</p>
<form name="login" method="post" action="" onSubmit="return validarForm();">
  <label>
  <div align="center"><img src="LogoYouCan.JPG" alt="logo" width="334" height="330">
  </div>
  <p align="center">&nbsp;</p>
  <div align="center">Matricula:
    <input name="matricula" type="text" id="matricula">
  </div>
  </label>
  <p align="center">
    <label>Senha:
    <input name="senha" type="password" id="senha">
    </label>
  </p>
   <p align="center">
    <label>
    <input name="logar" type="submit" id="logar" value="Logar">
    </label>
  </p>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

<?php
require 'ConectarBanco.class.php';
require 'Logar.class.php';

$banco = new ConectarBanco();
$banco->conectarBanco();
$logar = new Logar();
$logar->logar();
?>

